//package p.ithorns.cloud.office.pdf;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.thymeleaf.TemplateEngine;
//import  org.thymeleaf.templateresolver.StringTemplateResolver;
//
///**
// * ThymeleafConfig
// *
// * @author HtL
// * @date 2025/3/26 17:36
// * @since 1.0.0
// */
//@Configuration
//public class ThymeleafConfig {
//
//    @Bean
//    public TemplateEngine templateEngine() {
//        TemplateEngine templateEngine = new TemplateEngine();
//        StringTemplateResolver resolver = new StringTemplateResolver();
//        resolver.setTemplateMode("HTML");
//        resolver.setPrefix("templates/");
//        resolver.setSuffix(".html");
//        resolver.setCharactseterEncoding("UTF-8");
//        // 禁用上下文路径解析
//        resolver.setCacheable(false);
//        templateEngine.addTemplateResolver(resolver);
//        return templateEngine;
//    }
//}